import request from '@/utils/request'

// 查询藏品详情列表
export function listCollections(query) {
  return request({
    url: '/collections/collections/list',
    method: 'get',
    params: query
  })
}

// 查询藏品详情详细
export function getCollections(collectionId) {
  return request({
    url: '/collections/collections/' + collectionId,
    method: 'get'
  })
}

// 新增藏品详情
export function addCollections(data) {
  return request({
    url: '/collections/collections',
    method: 'post',
    data: data
  })
}

// 修改藏品详情
export function updateCollections(data) {
  return request({
    url: '/collections/collections',
    method: 'put',
    data: data
  })
}

// 删除藏品详情
export function delCollections(collectionId) {
  return request({
    url: '/collections/collections/' + collectionId,
    method: 'delete'
  })
}
